import java.util.*;

public class Building {
	
	public Book[] data = new Book[120]; //attribute() java+field
	public List<Book> otherData = new ArrayList<Book>(); //attribute() java+field
	private int size;
	
	public Building()
	{
		 //otherData = new ArrayList<Book>();
		//data = new Book[120];
	}
	
    public void addBook(Book element) { //method() java+parameter /element
        if (size == 100) {
        	Book[] newarray = new Book[size + 20];
            System.arraycopy(data, 0, newarray, 0, size);
            data = newarray;
        }
        data[size++] = element; // assing() building/data java+parameter /element
    }
    
}
